import java.util.Scanner;

public class computer {
    public static void main(String[] args) {
        int a;
        for (a = 0; a <= 30; a++) {
            System.out.print("*");
        }System.out.println();
        for (a = 0; a <= 5; a++) {
            System.out.print("*");
        }
        System.out.print("微型计算机");
        for (a = 0; a <= 10; a++) {
            System.out.print(" ");
        }
        for (a=0;a<=5;a++) {
            System.out.print("*");
        }System.out.println();
        for (a = 0; a <= 5; a++) {
            System.out.print("*");
        }
        System.out.print("1、求和  ");
        for (a = 0; a <= 10; a++) {
            System.out.print(" ");
        }
        for (a=0;a<=5;a++) {
            System.out.print("*");
        }System.out.println();
        for (a = 0; a <= 5; a++) {
            System.out.print("*");
        }
        System.out.print("2、求差  ");
        for (a = 0; a <= 10; a++) {
            System.out.print(" ");
        }
        for (a=0;a<=5;a++) {
            System.out.print("*");
        }System.out.println();
        for (a = 0; a <= 5; a++) {
            System.out.print("*");
        }
        System.out.print("3、求积  ");
        for (a = 0; a <= 10; a++) {
            System.out.print(" ");
        }
        for (a=0;a<=5;a++) {
            System.out.print("*");
        }System.out.println();
        for (a = 0; a <= 5; a++) {
            System.out.print("*");
        }
        System.out.print("4、求商  ");
        for (a = 0; a <= 10; a++) {
            System.out.print(" ");
        }
        for (a=0;a<=5;a++) {
            System.out.print("*");
        }System.out.println();
        for (a = 0; a <= 5; a++) {
            System.out.print("*");
        }
        System.out.print("5、求余  ");
        for (a = 0; a <= 10; a++) {
            System.out.print(" ");
        }
        for (a=0;a<=5;a++) {
            System.out.print("*");
        }System.out.println();
        for (a = 0; a <= 5; a++) {
            System.out.print("*");
        }
        System.out.print("Q、退出  ");
        for (a = 0; a <= 10; a++) {
            System.out.print(" ");
        }
        for (a=0;a<=5;a++) {
            System.out.print("*");
        }System.out.println();
        for (a = 0; a <= 5; a++) {
            System.out.print("*");
        }
        System.out.print("请选择您想执行的操作");
        for (a = 0; a <= 2; a++) {
            System.out.print(" ");
        }
        for (a=0;a<=5;a++) {
            System.out.print("*");
        }System.out.println();
        for (a = 0; a <= 30; a++) {
            System.out.print("*");
        }System.out.println();
        Scanner reader = new Scanner(System.in);
        System.out.println("请选择一项：");
        int z = reader.nextInt();
        System.out.println("请输入两个数字：");
        double m = reader.nextDouble();
        double n = reader.nextDouble();
        if (z==1){
            System.out.println(m+n);
        }
        else if (z==2){
            System.out.println(m-n);
        }
        else if (z==3){
            System.out.println(m*n);
        }
        else if (z==4){
            System.out.println(m/n);
        }
        else if (z==5){
            System.out.println(m%n);
        }
        else {
            System.out.println("退出");
        }
    }
}